
<?php
	$affectedRows = $this->session->flashdata("affectedRows");
	if($affectedRows === 0 || empty($affectedRows) == false){
		echo "<div class='message-success'>";
		if($affectedRows > 0){
			echo $affectedRows.$this->lang->line('lang.import.successmsg');
		} else {
			echo $this->lang->line('lang.import.norow');
		}
		
		echo "</div>";
	}
?>

<?php
	$this->load->helper("form");
	$url = $this->config->item('base_url');
	$currentlang = $this->lang->languageCode();
	echo form_open_multipart('import/do_import');
?>
<div class="main-page-content">
<table>
<tr>
<td>
<span>
	<label><?php echo $this->lang->line('lang.import.selectfilelable');?></label>
</span>
</td>
<td>
<span>
	<input id="fileupload" type="file" name="dulieucanxe" size="40" title="<?php echo $this->lang->line('lang.import.button.tooltip');?>"/>
</span>
</td>
</tr>
</table>
<div class="import-hint">
	<?php echo $this->lang->line('lang.import.hint');?>
</div>

<br /><br />

<input type="submit" value="<?php echo $this->lang->line('lang.import.button');?>" class="button-submit"/>

</form>
</div>
<?php
echo "<script type='text/javascript' language='javascript'>";
echo "$('#fileupload').customFileInput('".$this->lang->line('lang.import.browse')
									   ."','"
									   .$this->lang->line('lang.import.change')
									   ."','"
									   .$this->lang->line('lang.import.nofile')."')";
echo "</script>";
?>
